//:C14:Car.cpp
// Public composition
class Engine
{
    public:
        void start() const{}
        void rev() const{}
        void stop() const{}
};

class Wheel
{
    public:
        void infalte(int psi) const{}
};

class Window
{
    public:
        void rollup() const{}
        void rolldown() const{}
};

class Door
{
    public:
        Window window;
        void open() const{}
        void close() const{} 
};

class Car
{
    public:
        Engine engine;
        Wheel wheel[4];
        Door left, right;    // 2-door
};

int main(void)
{
    Car car;
    car.left.window.rollup();
    car.wheel[0].infalte(72);
}
